home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / nodee1a.arc / SOURCE.ARC / NODDLGS.CPP < prev    next >
C/C++ Source or Header  |  1991-09-20  |  1KB  |  58 lines

  1. /*---------------------------------------------------------------------
  2.  
  3.     TODODLGS.CPP - part of TODO example program
  4.  
  5.             Copyright (c) 1991 by Borland International
  6.             All Rights Reserved.
  7.  
  8. ---------------------------------------------------------------------*/
  9.  
  10. #if !defined( __WINDOWS_H )
  11. #include <Windows.h>
  12. #endif  // __WINDOWS_H
  13.  
  14. #if !defined( __String_H )
  15. #include <String.h>
  16. #endif  // __STRING_H
  17.  
  18. #if !defined( __NODDLGS_H )
  19. #include "NodDlgs.h"
  20. #endif
  21.  
  22.  
  23. /*---------------------------------------------------------------------
  24.  
  25. member functions for class AboutBox.
  26.  
  27. */
  28.  
  29.     LPSTR AboutBox::getDialogName()
  30.     {
  31.         return "AboutBox";
  32.     }
  33.  
  34.     BOOL AboutBox::dispatch( HWND hDlg, WORD msg, WORD wParam, LONG lParam )
  35.     {
  36.         switch( msg )
  37.         {
  38.  
  39.             case WM_INITDIALOG:
  40.                 return TRUE;
  41.  
  42.             case WM_COMMAND:
  43.                 if( wParam == IDOK || wParam == IDCANCEL )
  44.                 {
  45.                     EndDialog( hDlg, TRUE );
  46.                     return TRUE;
  47.                 }
  48.  
  49.             default:
  50.  
  51.             return ModalDialog::dispatch( hDlg, msg, wParam, lParam );
  52.  
  53.         }
  54.     }
  55.  
  56.  
  57.  
  58.